package com.wdb007.venus.web.api.book.model;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.wdb007.venus.web.api.Jsonable;

public class BRBookVO implements Serializable, Jsonable{
	private static final long serialVersionUID = 5126337417952641651L;

	private String isbn ;
	
	private String bookname ;
	
	private String imgurl ;
	
	private String author;//作者
	
	private String starttime;//借阅开始时间
	
	private String returntime;//归还时间
	
	private String borrowtime;//借阅时长
	
	private String cost;//借阅费用
	
	private byte type;//1借书，2还书
	private Integer costFlag;
	private String costFlagRemark;
	
	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public String getReturntime() {
		return returntime;
	}

	public void setReturntime(String returntime) {
		this.returntime = returntime;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getStarttime() {
		return starttime;
	}

	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}

	public String getBorrowtime() {
		return borrowtime;
	}

	public void setBorrowtime(String borrowtime) {
		this.borrowtime = borrowtime;
	}

	public String getCost() {
		return cost;
	}

	public void setCost(String cost) {
		this.cost = cost;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String ibsn) {
		this.isbn = ibsn;
	}

	public String getBookname() {
		return bookname;
	}

	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	@Override
	public JSONObject toJson() {
		return (JSONObject) JSON.toJSON(this);
	}

	public Integer getCostFlag() {
		return costFlag;
	}

	public void setCostFlag(Integer costFlag) {
		this.costFlag = costFlag;
	}

	public String getCostFlagRemark() {
		return costFlagRemark;
	}

	public void setCostFlagRemark(String costFlagRemark) {
		this.costFlagRemark = costFlagRemark;
	}
	
}
